import request from '@/utils/request'

// 查询微信退单信息列表
export function listRefundorder(query) {
  return request({
    url: '/store/refundorder/list',
    method: 'get',
    params: query
  })
}

// 查询微信退单信息详细
export function getRefundorder(refundId) {
  return request({
    url: '/store/refundorder/' + refundId,
    method: 'get'
  })
}

// 新增微信退单信息
export function addRefundorder(data) {
  return request({
    url: '/store/refundorder',
    method: 'post',
    data: data
  })
}

// 修改微信退单信息
export function updateRefundorder(data) {
  return request({
    url: '/store/refundorder',
    method: 'put',
    data: data
  })
}

// 删除微信退单信息
export function delRefundorder(refundId) {
  return request({
    url: '/store/refundorder/' + refundId,
    method: 'delete'
  })
}
